import request from '@/utils/request'

// 查询用户信息列表
export function listReview(query) {
    return request({
        url: '/system/review/list',
        method: 'get',
        params: query
    })
}

// 查询用户信息详细
export function getReview(applicantId) {
    return request({
        url: '/system/review/' + applicantId,
        method: 'get'
    })
}

// 新增用户信息
export function addReview(data) {
    return request({
        url: '/system/review',
        method: 'post',
        data: data
    })
}

// 修改用户信息
export function updateReview(data) {
    return request({
        url: '/system/review',
        method: 'put',
        data: data
    })
}

// 删除用户信息
export function delReview(applicantId) {
    return request({
        url: '/system/review/' + applicantId,
        method: 'delete'
    })
}
//审批注册信息
export function review(data) {
    return request({
        url: '/system/review/examine',
        method: 'post',
        data: data
    })
}